package org.example.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.example.model.category.CategoryBasic;
import org.example.model.common.dtos.PageResponseDto;
import org.example.model.common.dtos.category.CategoryBasicDto;

import java.util.List;

/**
 * 分类管理
 */
public interface CategoryBasicService extends IService<CategoryBasic> {

    /**
     * 新增分类
     */
    Boolean InsertCategoryBasic(CategoryBasic categoryBasic);

    /**
     * 根据id查询分类详情
     */
    CategoryBasicDto SelectCategoryById(int id);

    /**
     * 根据Id修改分类信息
     */
    Boolean UpdateCategoryBasicById(CategoryBasic categoryBasic);

    /**
     * 根据Id删除分类信息
     */
    Boolean DeleteCategoryBasicById(int id);

    /**
     * 按条件(分类名称模糊查询，分类类型精确查询)分页查询
     */
    PageResponseDto<List<CategoryBasicDto>> SelectPageByConditions(CategoryBasic categoryBasic, int pageIndex, int pageSize);

}
